<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: Dean <zxxjjforever@163.com>
// +----------------------------------------------------------------------
return [
//    const OSS_ACCESS_ID = '';
//    const OSS_ACCESS_KEY = '';
//    const OSS_ENDPOINT = '';
//    const OSS_TEST_BUCKET = '';
    'accessKey'                 => [// 在后台插件配置表单中的键名 ,会是config[text]
        'title'   => 'AccessKey', // 表单的label标题
        'type'    => 'text',// 表单的类型：text,password,textarea,checkbox,radio,select等
        'value'   => '',// 表单的默认值
        "rule"    => [
            "require" => true
        ],
        "message" => [
            "require" => 'AccessKey不能为空'
        ],
        'tip'     => 'OSS_ACCESS_ID' //表单的帮助提示
    ],
    'secretKey'                 => [// 在后台插件配置表单中的键名 ,会是config[password]
        'title'   => 'SecretKey',
        'type'    => 'text',
        'value'   => '',
        "rule"    => [
            "require" => true
        ],
        "message" => [
            "require" => 'SecretKey不能为空'
        ],
        'tip'     => 'OSS_ACCESS_KEY'
    ],
    'endpoint'                  => [// 在后台插件配置表单中的键名 ,会是config[endpoint]
        'title'   => 'endpoint',
        'type'    => 'text',       
        'value'   => 'http',
        "rule"    => [
            "require" => true
        ],
        "message" => [
            "require" => '域名协议不能为空'
        ],
        'tip'     => '对应网络访问的终端'
    ],
    'bucket'                  => [// 在后台插件配置表单中的键名 ,会是config[bucket]
        'title'   => 'bucket',
        'type'    => 'text',       
        'value'   => 'http',
        "rule"    => [
            "require" => true
        ],
        "message" => [
            "require" => 'bucket不能为空'
        ],
        'tip'     => 'bucket id'
    ],
    'style_separator'                  => [// 在后台插件配置表单中的键名 ,会是config[bucket]
        'title'   => 'style_separator',
        'type'    => 'text',       
        'value'   => 'x-oss-process=',
        "rule"    => [
            "require" => true
        ],
        "message" => [
            "require" => '水印分隔符不能为空'
        ],
        'tip'     => '水印分隔符，图片处理-访问设置里配置'
    ],'styles_watermark'          => [
        'title'   => '样式-水印',
        'type'    => 'text',
        'value'   => 'watermark',
        "rule"    => [
            "require" => true
        ],
        "message" => [
            "require" => '样式-水印不能为空'
        ],
        'tip'     => '水印'
    ],'styles_icon'          => [
        'title'   => '小图标80样式',
        'type'    => 'text',
        'value'   => 'styles_icon',
        "rule"    => [
            "require" => true
        ],
        "message" => [
            "require" => '样式-水印不能为空'
        ],
        'tip'     => '预览图样式'
    ],
    'domain'          => [
        'title'   => '资源访问地址',
        'type'    => 'text',
        'value'   => 'www.baidu.com',
        "rule"    => [
            "require" => true
        ],
        "message" => [
            "require" => '资源访问地址不能为空'
        ],
        'tip'     => '外网的资源访问地址'
    ]
];
					